package com.neuedu.corejava.ch3.homework;

import java.util.Scanner;
//RightTriangle直角三角形
public class RightTriangle {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		   System.out.print("请输入数字:");
		      int n=sc.nextInt();
		      // 控制行数
		    for (int i=1;i<n ;i++ )
		    	  {
		    	           for (int j=1;j<=i ;j++ )//输出*随着循环是递增的
		    	           {
		    	                System.out.print(" ");
		    	           }
		    	            for (int k=1;k<=(n-i) ;k++ )//输出空格随着外循环是递减的
		    	           {
		    	                 System.out.print("*");
		    	       }
		    	  System.out.println();
		    }
	}

}
